package com.situ.ssh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.situ.ssh.common.ServerResponse;
import com.situ.ssh.dao.IUserDao;
import com.situ.ssh.entity.User;
import com.situ.ssh.service.IUserService;
import com.situ.ssh.vo.SearchCondition;

@Service
public class UserServiceImpl implements IUserService{
	@Autowired
	private IUserDao userDao;

	@Override
	public User login(User user) {
		return userDao.login(user);
	}

	@Override
	public List<User> findAll() {
		return userDao.findAll();
	}

	@Override
	public ServerResponse pageList(SearchCondition searchCondition) {
		return userDao.pageList(searchCondition);
	}

}
